#ifndef _MAESTRONANO_ISP_H_
#define _MAESTRONANO_ISP_H_

#include "NUC1xx.h"
#include "Driver\DrvUSB.h"


/* For FMC Registers */
#define FMC_ISPCON         (FMC_BASE+0x000)			
#define FMC_ISPADR         (FMC_BASE+0x004)		
#define FMC_ISPDAT         (FMC_BASE+0x008)			
#define FMC_ISPCMD         (FMC_BASE+0x00C)			
#define FMC_ISPTRG         (FMC_BASE+0x010)		

#define FAT_SECTORS             u8FormatData[14]
#define ROOT_DIR_ADDRESS        ((FAT_SECTORS + 2) * 512)
#define ROOT_DIR_SECTORS        ((((u8FormatData[18] << 8) + u8FormatData[17]) * 32) / 512)  
#define DATA_SECTOR_ADDRESS     ((FAT_SECTORS + 2 + ROOT_DIR_SECTORS) * 512)


#endif